# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=proxyboi
pkgver=0.5.0
pkgrel=2
pkgdesc="A super simple reverse proxy with TLS support"
arch=('loong64' 'x86_64')
url="https://github.com/svenstaro/proxyboi"
license=('MIT')
depends=('gcc-libs')
makedepends=('rust')
options=('!lto')
source=($pkgname-$pkgver.tar.gz::https://github.com/svenstaro/proxyboi/archive/v${pkgver}.tar.gz)
sha512sums=('4e7e262ce3ac9583903634e49cde82fd02120ad5f148fd484b2d4fb79b5846d4022766553320bbb575237a10c91f057dfd44ad07a2ed5317dd297a5e5609a649')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  cargo build --release --locked
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  install -Dm755 target/release/proxyboi "$pkgdir"/usr/bin/proxyboi
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et:
